package com.qinghe.plant.util;

//消息返回格式
public class Response {
	
	private Integer code;
	private String content;
	private String toast;

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getToast() {
		return toast;
	}

	public void setToast(String toast) {
		this.toast = toast;
	}
	
	//若有数据返回，状态码为0，人为指定提示信息
	public Response (CodeType codeType,String content,String toast)
	{
		this.code=codeType.ordinal();
		this.content=content;
		this.toast=toast;
	}
}
